package oop3;

/**
 * @author oldliu
 * @since 1.0
 */
public class PTest {
    public static void main(String[] args) {
        Person p = new Person();
        //        p.name="老吴";
        //        p.age=21;//错误
        p.setName("老吴");
        p.setAge(29);
        int i=p.getAge();
        System.out.println(i);
        System.out.println("p这个人叫"+p.getName()+"，今年："+p.getAge()+"岁了");
        p.show();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        Person p2=new Person("王智睿",20);
        p2.show();
        p2.guonian();
        p2.guonian();
        p2.guonian();
        p2.show();
    }
}
